package com.googlecode.monitoring.db.dao;

import java.util.Date;
import java.util.List;

/**
 * Author: Sergiy Doroshenko
 * Date: May 19, 2010
 * Time: 1:05:04 PM
 */
public interface TableReaderDao {
	/**
	 * return list of three last dates from tableName
	 *
	 * @param tableName  name of table
	 * @param columnName name of column
	 * @return list
	 */
	List<Date> getLatestDate(String tableName, String columnName);

	/**
	 * return count of rows in table with tableName
	 *
	 * @param tableName name of table
	 * @return int
	 */
	int getLatestDate(String tableName);
}
